package org.design.flyweightPattern;

import lombok.Setter;

/**
 * Circle
 *
 * @author 樊温军
 * @date 2025/6/16 下午5:56
 */
public class Circle implements Shape {
    private final String color;
    @Setter
    private int x;
    @Setter
    private int y;
    @Setter
    private int radius;

    public Circle(String color){
        this.color = color;
    }

    @Override
    public void draw() {
        System.out.println("圆圈: 画笔 [颜色 : " + color
                +", 坐标x : " + x +", 坐标y :" + y +", 半径 :" + radius + "]");
    }
}
